package com.version2_0.dao;

import java.util.List;
import java.util.Map;

/**
 * Created by reeveslee on 16/6/7.
 */
public interface PageDao2_0 {

    public Map<String, Object> getSectionInfo(int sectionId, int subId);

    public List<Map<String, Object>> pages(int sectionId, long timestamp, int lastId);

    public Map<String, Object> page(int pageId);

    public List<Map<String, Object>> recoms(int pageId);

    public int pageComNumber(int pageId);

    public boolean hasCollect(int pageId, int userId);

    public List<Map<String, Object>> comment(int pageId, int lastId);

    public boolean hasPraised(int commentId, int userId);

    public List<Map<String, Object>> reply(int commentId);

    public boolean addComment(int userId, int pageId, String text, String images);

    public boolean delComment(int userId, int commentId);

    public Map<String, Object> voteChose(int userId, int voteInfoId, int chose);

    public List<Map<String, Object>> history(int lastId);

    public List<Map<String, Object>> video(int lastId);

    public boolean checkVote(int userId, int infoId);

    public List<Map<String, Object>> vote(int lastId);
}
